<h2>
<div id="outputSectionShowHideSectionBox" class="hideSection" onClick="showHideSection('outputSection')">&nbsp;</div>
Structure
</h2>


<div id="outputSection">

	<div id="treeOutput"></div>

	<button id="selectStructureNodeButton" onClick="selectStructureNode()">Add Structure Parameter</button>
	<button onClick="addOutputGroup()">Add Structure Group</button>

</div>




<h2>
<div id="functionsShowHideSectionBox" class="hideSection" onClick="showHideSection('functions')">&nbsp;</div>
Functions
</h2>


<div id="functionSection">

</div>
<?php
//We tell javascript where to render the functions
$this->javascriptData('functionsRenderDivId','functionSection'); 
?>






<h2>
<div id="saveMessageSectionShowHideSectionBox" class="hideSection" onClick="showHideSectionSection('saveMessageSection')">&nbsp;</div>
Save Message 
</h2>


<div id="saveMessageSection">

<form action="<?php echo $this->baseUrl() ?>/fop/index/savemessage/" method="POST">
<h3>Change Description</h3>

<textarea cols="80" id="messageChangeDescription" name="messageChangeDescription">
<?php if(!empty($this->id)) echo 'Original version id: '.$this->id."\n"; ?>
</textarea>

<input type="hidden" name="messageDefinition" id="messageDefinition" />
<input type="hidden" name="tableName" id="tableName" value="<?php echo $this->tableName; ?>" />
<input type="hidden" name="foplineName" id="foplineName" value="<?php echo $this->foplineName; ?>" />
<br /><br />

	<button onClick="document.getElementById('messageDefinition').value = getMessageDefinition();">Save Message</button>


</form>
</div>

<div id="messageJSONDef" class="data"><?php echo $this->messageDefinition ?></div>
<div id="APIBaseURL" class="data"><?php echo $this->baseURL().'/'.$this->tableName.'/'.$this->fopline.'/' ?></div>